<?php
	header("Content-type:text/html;charset=utf8");
	//用户登陆成功跳转的页面

	session_start();

	include_once("connect_db.php");

    //echo $_SESSION['username'];
    $username = $_SESSION['username'];
    //echo $username;
    //从数据表中查询此用户的信息
    $sql = "SELECT * FROM user WHERE phone=".$username."";

    $sqlRes = mysql_query($sql);
    //echo $sqlRes;
   	//var_dump(mysql_fetch_assoc($sqlRes));
   	$userInfo = mysql_fetch_array($sqlRes);
   	echo "用户电话：".$username.'<br/>';
   	echo "用户昵称：".$userInfo['nickname'].'<br/>';
   	echo "用户性别：".$userInfo['sex'].'<br/>';
   	echo "用户年龄：".$userInfo['age'].'<br/>';
   	echo "用户地址：".$userInfo['address'].'<br/>';
?>